package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HouseViewingMapper;
import com.ruoyi.system.domain.HouseViewing;
import com.ruoyi.system.service.IHouseViewingService;

/**
 * 看房请求Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-11
 */
@Service
public class HouseViewingServiceImpl implements IHouseViewingService 
{
    @Autowired
    private HouseViewingMapper houseViewingMapper;

    /**
     * 查询看房请求
     * 
     * @param id 看房请求主键
     * @return 看房请求
     */
    @Override
    public HouseViewing selectHouseViewingById(Long id)
    {
        return houseViewingMapper.selectHouseViewingById(id);
    }

    /**
     * 查询看房请求列表
     * 
     * @param houseViewing 看房请求
     * @return 看房请求
     */
    @Override
    public List<HouseViewing> selectHouseViewingList(HouseViewing houseViewing)
    {
        return houseViewingMapper.selectHouseViewingList(houseViewing);
    }

    /**
     * 新增看房请求
     * 
     * @param houseViewing 看房请求
     * @return 结果
     */
    @Override
    public int insertHouseViewing(HouseViewing houseViewing)
    {
        return houseViewingMapper.insertHouseViewing(houseViewing);
    }

    /**
     * 修改看房请求
     * 
     * @param houseViewing 看房请求
     * @return 结果
     */
    @Override
    public int updateHouseViewing(HouseViewing houseViewing)
    {
        return houseViewingMapper.updateHouseViewing(houseViewing);
    }

    /**
     * 批量删除看房请求
     * 
     * @param ids 需要删除的看房请求主键
     * @return 结果
     */
    @Override
    public int deleteHouseViewingByIds(Long[] ids)
    {
        return houseViewingMapper.deleteHouseViewingByIds(ids);
    }

    /**
     * 删除看房请求信息
     * 
     * @param id 看房请求主键
     * @return 结果
     */
    @Override
    public int deleteHouseViewingById(Long id)
    {
        return houseViewingMapper.deleteHouseViewingById(id);
    }
}
